package com.dayuanit.dy14.rpc.client.demo.handler;

import com.dayuanit.dy14.rpc.client.demo.net.Client;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class PayHandler implements InvocationHandler {

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Object resultObject = Client.callRemoteMethod("com.dayuanit.dy14.rpc.client.demo.service.impl.PayServiceImpl",
                method.getName(),
                method.getParameterTypes(),
                args);

        return resultObject;
    }
}
